package com.ruoyi.crm.activity.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * crm活动表对象 crm_activity
 * 
 * @author ruoyi
 * @date 2021-09-06
 */
public class CrmActivity extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 活动id */
    private Long id;

    /** 活动类型 1 跟进 2 任务 3 商机阶段变更 4 外勤签到 */
    @Excel(name = "活动类型 1 跟进 2 任务 3 商机阶段变更 4 外勤签到")
    private Long type;

    /** 跟进类型 */
    @Excel(name = "跟进类型")
    private String category;

    /** 活动类型 1 线索 2 客户 3 联系人 4 产品 5 商机 6 合同 7回款 8日志 9审批 10日程 11任务 12 发邮件 */
    @Excel(name = "活动类型 1 线索 2 客户 3 联系人 4 产品 5 商机 6 合同 7回款 8日志 9审批 10日程 11任务 12 发邮件")
    private Long activityType;

    /** 业务Id */
    @Excel(name = "业务Id")
    private Long businessId;

    /** 活动内容 */
    @Excel(name = "活动内容")
    private String content;

    /** 负责人 */
    @Excel(name = "负责人")
    private int activityLeader;

    /** 下次联系时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "下次联系时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date nextTime;

    /** 0 已拜访 1 未拜访 */
    @Excel(name = "任务、拜访状态 1：完成  0：完成")
    private Long status;

    /** 经度 */
    @Excel(name = "经度")
    private String lng;

    /** 纬度 */
    @Excel(name = "纬度")
    private String lat;

    /** 签到地址 */
    @Excel(name = "签到地址")
    private String address;

    /** 附件地址 */
    @Excel(name = "附件地址")
    private String annex;
    
    /** 创建者名称 */
    private String createByName;
    
    /** 更信任名称 */
    private String updateByName;

    /** 负责人 */
    @Excel(name = "负责人名称")
    private String activityLeaderName;
    

    public String getActivityLeaderName() {
		return activityLeaderName;
	}

	public void setActivityLeaderName(String activityLeaderName) {
		this.activityLeaderName = activityLeaderName;
	}

	public int getActivityLeader() {
		return activityLeader;
	}

	public void setActivityLeader(int activityLeader) {
		this.activityLeader = activityLeader;
	}

	public String getCreateByName() {
		return createByName;
	}

	public void setCreateByName(String createByName) {
		this.createByName = createByName;
	}

	public String getUpdateByName() {
		return updateByName;
	}

	public void setUpdateByName(String updateByName) {
		this.updateByName = updateByName;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setType(Long type) 
    {
        this.type = type;
    }

    public Long getType() 
    {
        return type;
    }
    public void setCategory(String category) 
    {
        this.category = category;
    }

    public String getCategory() 
    {
        return category;
    }
    public void setActivityType(Long activityType) 
    {
        this.activityType = activityType;
    }

    public Long getActivityType() 
    {
        return activityType;
    }
    public void setBusinessId(Long businessId) 
    {
        this.businessId = businessId;
    }

    public Long getBusinessId() 
    {
        return businessId;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setNextTime(Date nextTime) 
    {
        this.nextTime = nextTime;
    }

    public Date getNextTime() 
    {
        return nextTime;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setLng(String lng) 
    {
        this.lng = lng;
    }

    public String getLng() 
    {
        return lng;
    }
    public void setLat(String lat) 
    {
        this.lat = lat;
    }

    public String getLat() 
    {
        return lat;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setAnnex(String annex) 
    {
        this.annex = annex;
    }

    public String getAnnex() 
    {
        return annex;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("type", getType())
            .append("category", getCategory())
            .append("activityType", getActivityType())
            .append("businessId", getBusinessId())
            .append("content", getContent())
            .append("activityLeader", getActivityLeader())
            .append("nextTime", getNextTime())
            .append("status", getStatus())
            .append("lng", getLng())
            .append("lat", getLat())
            .append("address", getAddress())
            .append("annex", getAnnex())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
